<?php
/**
 * Created by PhpStorm.
 * Script Name: WxaComponentFastregisterbetaweapp.php
 * Create: 2023/12/08 14:12
 * Description: 绑定微信用户为小程序体验者
 * https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html
 * Author: fudaoji<fdj@kuryun.cn>
 */
namespace EasyOpen\Tencent\Request\Mp;

class WxaComponentFastregisterbetaweapp
{
    private $url = "https://api.weixin.qq.com/wxa/component/fastregisterbetaweapp";
    private $name;
    private $openid;
    private $getParams = array();
    private $postParams = array();

    /**
     * 获取请求url
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function getUrl(){
        return $this->url;
    }

    /**
     * 设置请求地址
     * @param string $url
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function setUrl($url) {
        $this->url = $url;
    }

    /**
     * 设置name
     * @param string $name
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function setName($name) {
        $this->name = $name;
        $this->postParams['name'] = $name;
    }

    /**
     * 获取name
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function getName() {
        return $this->name;
    }

    /**
     * get请求参数
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function getParams() {
        return $this->getParams;
    }

    /**
     * post请求参数
     * @author fudaoji<fdj@kuryun.cn>
     */
    public function postParams() {
        return $this->postParams;
    }

    /**
     * @return mixed
     */
    public function getOpenid()
    {
        return $this->openid;
    }

    /**
     * @param mixed $openid
     */
    public function setOpenid($openid): void
    {
        $this->openid = $openid;
        $this->postParams['openid'] = $openid;
    }

}